<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.hcz.entity.User" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>显示所有用户</title>
  </head>
  
  <body>
  <h3>or显示所有用户</h3>
  <%
  	List<User> list = (List<User>)application.getAttribute("userList");
  	
   %>
   <table border="1px"width="70%">
   	<tr>
   		<td>用户名</td>
   		<td>用户状态</td>
   	</tr>
   	 <%for(User user:list){ %>
	 <tr>
	 	<td><%=user.getName() %></td>
	 	<td>
		 	<%
		 		if(user.isState()){
		 	 %>
		 	 <span>可用</span>
		 	 <%}else { %>
		 	 <span>不可用</span>
		 	 <%} %>
	 	</td>
	 </tr>
   	<%} %>
   </table>
  <div><a href="sysCenter.jsp">返回</a></div>
  </body>
</html>
